-- GENERATED SPELL FOR [Terrorfiend] --


function spell0_16951(pUnit, Event) --@Fel Flames,n/a--
pUnit:FullCastSpellOnTarget(37488,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16951', 5000, 1)
end

function spell1_16951(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(45,pUnit)
pUnit:RegisterEvent('Sorts_16951', 533, 1)
end

function Sorts_16951(pUnit, Event)
local choix_sorts_16951 = math.random(0, 1)
if choix_sorts_16951 == 0 then
pUnit:RegisterEvent('spell0_16951', 1, 1)
end
if choix_sorts_16951 == 1 then
pUnit:RegisterEvent('spell1_16951', 1, 1)
end
end

function mob16951_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16951', math.random(1500, 3000), 1)
end

function mob16951_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16951_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16951_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16951, 1, 'mob16951_Action')
RegisterUnitEvent(16951, 2, 'mob16951_Leave')
RegisterUnitEvent(16951, 3, 'mob16951_Kill')
RegisterUnitEvent(16951, 4, 'mob16951_Die')
